﻿using IFramework;
using UnityEngine;

public class TestZip : MonoBehaviour {

	// Use this for initialization
	void Start () {
       // Gdal.SetConfigOption("GDAL_FILENAME_IS_UTF8", "YES");

        string dir = @"E:\ZipTest哈哈\";
        
        string[] dirs = new string[3];
        dirs[0] = dir + "a";
        dirs[1] = dir + "b";
        dirs[2] = dir + "a.txt";
        //ZipFile.ZipOneFile(dir + "c.txt", dir);
        //ZipFile.ZipDirectory(dirs[0], dir);
        ZipFile.Zip(dirs, dir);

        // File.WriteAllBytes(Path.Combine(dir , "x.txt"),null);
        //  ZipFile.UnZip(dir + "a.zip", dir, "123");
        //File.Create(tar + "a.txt");
    }
   



    void Update () {
    
    }
}
